package com.oguzhan.xtools.view;

import javax.swing.JPanel;
import javax.swing.JSplitPane;
import java.awt.BorderLayout;
import javax.swing.JComboBox;
import javax.swing.JTextArea;
import java.awt.Dimension;
import javax.swing.border.EmptyBorder;
import javax.swing.JButton;
import java.awt.FlowLayout;
import javax.swing.JTree;
import javax.swing.border.EtchedBorder;
import javax.swing.ImageIcon;

public class TestView extends JPanel {

	/**
	 * 
	 */
	private static final long serialVersionUID = -9162769393276289271L;

	/**
	 * Create the panel.
	 */
	public TestView() {
		setLayout(new BorderLayout(0, 0));
		
		JSplitPane splitPane = new JSplitPane();
		splitPane.setDividerSize(2);
		add(splitPane);
		
		JPanel leftPanel = new JPanel();
		leftPanel.setBorder(new EmptyBorder(0, 4, 0, 0));
		splitPane.setLeftComponent(leftPanel);
		leftPanel.setLayout(new BorderLayout(0, 0));
		
		JPanel panel_1 = new JPanel();
		FlowLayout flowLayout = (FlowLayout) panel_1.getLayout();
		flowLayout.setVgap(6);
		leftPanel.add(panel_1, BorderLayout.NORTH);
		
		JButton btnNewButton = new JButton("Start");
		btnNewButton.setIcon(new ImageIcon(TestView.class.getResource("/tr/com/softtech/icons/play.gif")));
		panel_1.add(btnNewButton);
		
		JButton btnNewButton_1 = new JButton("Stop");
		btnNewButton_1.setIcon(new ImageIcon(TestView.class.getResource("/tr/com/softtech/icons/stop.png")));
		panel_1.add(btnNewButton_1);
		
		JTree tree = new JTree();
		tree.setPreferredSize(new Dimension(194, 524));
		tree.setBorder(new EtchedBorder(EtchedBorder.RAISED, null, null));
		leftPanel.add(tree);
		
		JPanel rightPanel = new JPanel();
		splitPane.setRightComponent(rightPanel);
		rightPanel.setLayout(new BorderLayout(0, 0));
		
		JPanel panel = new JPanel();
		panel.setBorder(new EmptyBorder(5, 4, 5, 4));
		rightPanel.add(panel, BorderLayout.NORTH);
		panel.setLayout(new BorderLayout(0, 0));
		
		JComboBox comboBox = new JComboBox();
		panel.add(comboBox);
		
		JSplitPane splitPane_1 = new JSplitPane();
		splitPane_1.setBorder(new EmptyBorder(3, 4, 0, 4));
		splitPane_1.setDividerSize(2);
		rightPanel.add(splitPane_1, BorderLayout.CENTER);
		
		JTextArea textArea = new JTextArea();
		textArea.setBorder(new EtchedBorder(EtchedBorder.RAISED, null, null));
		splitPane_1.setLeftComponent(textArea);
		
		JTextArea textArea_1 = new JTextArea();
		textArea_1.setBorder(new EtchedBorder(EtchedBorder.RAISED, null, null));
		splitPane_1.setRightComponent(textArea_1);
		splitPane_1.setDividerLocation(250);
		splitPane.setDividerLocation(200);
		
		ProgressPanel progressPanel = new ProgressPanel();
		add(progressPanel, BorderLayout.SOUTH);

	}

}
